import type { routesInt } from '@/routers/types'

export const routes: routesInt[] = [
  {
    name: '首页',
    path: '/',
    component: () => import('@/views/home/index.vue'),
    meta: {
      icon: 'ic:baseline-cabin',
    },
  },
  {
    name: '关于',
    path: '/about',
    component: () => import('@/views/about/index.vue'),
    meta: {
      icon: 'ic:baseline-chat',
    },
  },
  {
    name: '产品',
    path: '/chanp',
    meta: {
      icon: 'ic:baseline-category',
    },
    children: [
      {
        name: '橘子',
        path: '/chanp/juzi',
        component: () => import('@/views/chanp/juzi/index.vue'),
        meta: {
          icon: 'ic:baseline-emoji-events',
        },
      },
      {
        name: '西瓜',
        path: '/chanp/xigua',
        component: () => import('@/views/chanp/xigua/index.vue'),
        meta: {
          icon: 'ic:baseline-currency-exchange',
        },
      },
    ],
  },
  {
    name: 'grid',
    path: '/grid',
    meta: {
      icon: 'ic:sharp-grid-view',
    },
    children: [
      {
        name: '媒体查询',
        path: '/grid/media-queries',
        component: () => import('@/views/grid/media-queries/index.vue'),
        meta: {
          icon: 'ic:outline-mediation',
        },
      },
      {
        name: '打印',
        path: '/grid/print',
        component: () => import('@/views/grid/print/index.vue'),
        meta: {
          icon: 'ic:outline-design-services',
        },
      },
      {
        name: '测试',
        path: '/grid/g1',
        component: () => import('@/views/grid/g1/index.vue'),
        meta: {
          icon: 'ic:outline-tips-and-updates',
        },
      },
    ],
  },
]
